package com.lzh.shijicloudstack.model.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.lzh.shijicloudstack.common.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Index;
import javax.persistence.Table;

/**
 * 菜谱制作流程表
 *
 * @author luzhiheng
 * @since 2024-12-28 16:14:28
 */
@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("cookbook_process")
@Entity
@Table(name = "cookbook_process", indexes = {
        @Index(name = "cookbook_id_idx", columnList = "cookbook_id", unique = false)
})
public class CookbookProcess extends BaseEntity {

    /**
     * 菜谱ID
     */
    @Column(name = "cookbook_id", columnDefinition = "bigint(20) COMMENT '菜谱ID'")
    private Long cookbookId;

    /**
     * 制作顺序
     */
    @Column(name = "process_order", columnDefinition = "int(11) COMMENT '制作顺序'")
    private Integer processOrder;

    /**
     * 图片
     */
    @Column(name = "img", columnDefinition = "varchar(1024) COMMENT '图片'")
    private String img;

    /**
     * 做法描述
     */
    @Column(name = "description", columnDefinition = "varchar(2048) COMMENT '做法描述'")
    private String description;

    /**
     * 耗时
     */
    @Column(name = "time_consume", columnDefinition = "varchar(255) COMMENT '耗时'")
    private String timeConsume;

    /**
     * 难度
     */
    @Column(name = "difficulty", columnDefinition = "varchar(50) COMMENT '难度'")
    private String difficulty;

    /**
     * 备注
     */
    @Column(name = "remark", columnDefinition = "varchar(255) COMMENT '备注'")
    private String remark;

}
